#ifndef AGENT_H
#define AGENT_H

#include "Protocole.h"
#include "libnet/libnet.h"
#include <string>

#define MAX_ACTIVITES 4

class Agent
{
 public:

  Agent(std::string ip, int port);
  virtual ~Agent();
  
  void sendProto(std::string msg);
  void sendString(const char *buf, int size);
  void sendInt(int n);
  
  std::string getProto();
  int getInt();
  std::string getString(int size, int bufsize = 256);

 private:

  Protocole _proto;
  SocketClient sock;

};

#endif
